/*
 * Copyright (C) Michael Opitz
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
 * USA
 */
#ifndef CONFIGURATOR_H
#define CONFIGURATOR_H

#include "network.h"
#include "xml_filetype.h"
#include "blank_filetype.h"

/** 
 * \brief This namespaces includes all nertwork related stuff.
 * \author Michael Opitz
 */
namespace network {
	/** 
	 * \brief This class provides default-informations about the filetypes,
	 * which are used by the varios connections. 
	 */
	class configurator {
	public:
		configurator() {}
		~configurator() {}

		/** 
		 * \brief get_web_filetype returns the filetype for
		 * web-connections
		 * 
		 * \return the default filetype for web-connections is returned
		 */
		static boost::shared_ptr<network::filetype> get_web_filetype()
		{
			boost::shared_ptr<network::filetype> impl(
				new network::xml_filetype());
			return impl;
		}

		/** 
		 * \brief get_rs232_filetype returns the filetype for
		 * rs232-connections.
		 * 
		 * \return e shared_ptr with a network::filetype is returned.
		 */
		static boost::shared_ptr<network::filetype> get_rs232_filetype()
		{
			boost::shared_ptr<network::filetype> impl(
				new network::blank_filetype());
			return impl;
		}

		/** 
		 * \brief get_music_filetype returns the default-filetype for
		 * music-connections
		 * 
		 * \return a shared_ptr of a network::filetype is returned.
		 */
		static boost::shared_ptr<network::filetype> get_music_filetype() 
		{
			boost::shared_ptr<network::filetype> p(
				new network::xml_filetype());
			return p;
		}
	private:
	};
}

#endif
